package com.fll.codeworld.pattern;

import java.util.regex.Pattern;

/**
 * @author fll
 * @description
 * @date 2022/1/27 15:55
 */
public class PatternTest {
    public static void main(String[] args) {
        String content = "I am noob " +
                "from runoob.com.";
        String pattern = ".*runoob.*";
        boolean isMatch = Pattern.matches(pattern, content);
        System.out.println("字符串中是否包含了 'runoob' 子字符串? " + isMatch);
    }
}
